<?php

function __autoload($class)
{
    $namespace = ['aw\\' => __DIR__ . '/src/aw/'];
    foreach ($namespace as $prefix => $dir) {
        $path = str_replace($prefix, $dir, $class);
        $path = str_replace('\\', '/', $path);
        $path = $path . '.php';
        if (file_exists($path)) {
            include $path;
        }
    }
}

spl_autoload_register('__autoload');
